// MainWindow.h
#pragma once
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include "ChessGUI.h"

class MainWindow {
private:
    HWND hwnd;
    HINSTANCE hInstance;
    ChessGUI* chessGUI;
    HWND hStatusBar;
    HWND hToolBar;
    
public:
    MainWindow(HINSTANCE hInst);
    ~MainWindow();
    
    bool Create();
    void Show();
    HWND GetHwnd() const { return hwnd; }
    
private:
    static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
    LRESULT HandleMessage(UINT msg, WPARAM wParam, LPARAM lParam);
    void CreateMainMenu();
    void CreateToolbar();
    void CreateStatusBar();
};
